<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>SalaryLog</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/github.css" type="text/css" media="screen" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>
    <div class="banner">
        
        <h1>
            <span class="type">Module</span>
            SalaryLog
            
        </h1>
        <ul class="files">
            
            <li><a href="../files/app/models/concerns/salary_log_rb.html">app/models/concerns/salary_log.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>C</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-canfei">canfei</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>G</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-gangwei">gangwei</a>,
              </li>
            
              
              <li>
                <a href="#method-i-gaowen">gaowen</a>,
              </li>
            
              
              <li>
                <a href="#method-i-gongjijin">gongjijin</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>I</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-insurance">insurance</a>,
              </li>
            
              
              <li>
                <a href="#method-i-insurance_amount">insurance_amount</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>J</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-jiaotong">jiaotong</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>L</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-laobao">laobao</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>O</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-other_subsidy">other_subsidy</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>S</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-shiye">shiye</a>,
              </li>
            
              
              <li>
                <a href="#method-i-subsidy">subsidy</a>,
              </li>
            
              
              <li>
                <a href="#method-i-subsidy_amount">subsidy_amount</a>,
              </li>
            
              
              <li>
                <a href="#method-i-subsidy_by">subsidy_by</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>Y</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-yanglao">yanglao</a>,
              </li>
            
              
              <li>
                <a href="#method-i-yiliao">yiliao</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>Z</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="#method-i-zhusu">zhusu</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  



  

    

    

    


    


    <!-- Methods -->
        
      <div class="sectiontitle">Instance Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-canfei">
            
              <b>canfei</b>()
            
            <a href="../classes/SalaryLog.html#method-i-canfei" name="method-i-canfei" class="permalink">Link</a>
          </div>

          
            <div class="description">
              <p>餐补</p>
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-canfei_source')" id="l_method-i-canfei_source">show</a>
                
              </p>
              <div id="method-i-canfei_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 23</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">canfei</span>
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-string">&quot;canfei&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-gangwei">
            
              <b>gangwei</b>()
            
            <a href="../classes/SalaryLog.html#method-i-gangwei" name="method-i-gangwei" class="permalink">Link</a>
          </div>

          
            <div class="description">
              <p>岗位</p>
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-gangwei_source')" id="l_method-i-gangwei_source">show</a>
                
              </p>
              <div id="method-i-gangwei_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 13</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">gangwei</span>
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-string">&quot;gangwei&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-gaowen">
            
              <b>gaowen</b>()
            
            <a href="../classes/SalaryLog.html#method-i-gaowen" name="method-i-gaowen" class="permalink">Link</a>
          </div>

          
            <div class="description">
              <p>高温</p>
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-gaowen_source')" id="l_method-i-gaowen_source">show</a>
                
              </p>
              <div id="method-i-gaowen_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 38</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">gaowen</span>
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-string">&quot;gaowen&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-gongjijin">
            
              <b>gongjijin</b>()
            
            <a href="../classes/SalaryLog.html#method-i-gongjijin" name="method-i-gongjijin" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-gongjijin_source')" id="l_method-i-gongjijin_source">show</a>
                
              </p>
              <div id="method-i-gongjijin_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 66</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">gongjijin</span>
  <span class="ruby-identifier">insurance</span>[<span class="ruby-string">&#39;gongjijin&#39;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-insurance">
            
              <b>insurance</b>()
            
            <a href="../classes/SalaryLog.html#method-i-insurance" name="method-i-insurance" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-insurance_source')" id="l_method-i-insurance_source">show</a>
                
              </p>
              <div id="method-i-insurance_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 50</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">insurance</span>
  <span class="ruby-identifier">read_attribute</span>(<span class="ruby-value">:insurance</span>) <span class="ruby-operator">||</span> {}
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-insurance_amount">
            
              <b>insurance_amount</b>()
            
            <a href="../classes/SalaryLog.html#method-i-insurance_amount" name="method-i-insurance_amount" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-insurance_amount_source')" id="l_method-i-insurance_amount_source">show</a>
                
              </p>
              <div id="method-i-insurance_amount_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 70</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">insurance_amount</span>
  <span class="ruby-identifier">read_attribute</span>(<span class="ruby-value">:insurance_amount</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">yiliao</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">yanglao</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">shiye</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">gongjijin</span>) <span class="ruby-operator">||</span>  <span class="ruby-number">0.0</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-jiaotong">
            
              <b>jiaotong</b>()
            
            <a href="../classes/SalaryLog.html#method-i-jiaotong" name="method-i-jiaotong" class="permalink">Link</a>
          </div>

          
            <div class="description">
              <p>交通</p>
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-jiaotong_source')" id="l_method-i-jiaotong_source">show</a>
                
              </p>
              <div id="method-i-jiaotong_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 33</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">jiaotong</span>
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-string">&quot;jiaotong&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-laobao">
            
              <b>laobao</b>()
            
            <a href="../classes/SalaryLog.html#method-i-laobao" name="method-i-laobao" class="permalink">Link</a>
          </div>

          
            <div class="description">
              <p>劳保</p>
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-laobao_source')" id="l_method-i-laobao_source">show</a>
                
              </p>
              <div id="method-i-laobao_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 28</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">laobao</span>
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-string">&quot;laobao&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-other_subsidy">
            
              <b>other_subsidy</b>()
            
            <a href="../classes/SalaryLog.html#method-i-other_subsidy" name="method-i-other_subsidy" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-other_subsidy_source')" id="l_method-i-other_subsidy_source">show</a>
                
              </p>
              <div id="method-i-other_subsidy_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 42</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">other_subsidy</span>
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-string">&quot;other&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-shiye">
            
              <b>shiye</b>()
            
            <a href="../classes/SalaryLog.html#method-i-shiye" name="method-i-shiye" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-shiye_source')" id="l_method-i-shiye_source">show</a>
                
              </p>
              <div id="method-i-shiye_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 62</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">shiye</span>
  <span class="ruby-identifier">insurance</span>[<span class="ruby-string">&quot;shiye&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-subsidy">
            
              <b>subsidy</b>()
            
            <a href="../classes/SalaryLog.html#method-i-subsidy" name="method-i-subsidy" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-subsidy_source')" id="l_method-i-subsidy_source">show</a>
                
              </p>
              <div id="method-i-subsidy_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 4</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">subsidy</span>
  <span class="ruby-identifier">read_attribute</span>(<span class="ruby-value">:subsidy</span>) <span class="ruby-operator">||</span> {}
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-subsidy_amount">
            
              <b>subsidy_amount</b>()
            
            <a href="../classes/SalaryLog.html#method-i-subsidy_amount" name="method-i-subsidy_amount" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-subsidy_amount_source')" id="l_method-i-subsidy_amount_source">show</a>
                
              </p>
              <div id="method-i-subsidy_amount_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 46</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">subsidy_amount</span>
  <span class="ruby-identifier">read_attribute</span>(<span class="ruby-value">:subsidy_amount</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">gangwei</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">zhusu</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">canfei</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">laobao</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">jiaotong</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">gaowen</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">other_subsidy</span>) <span class="ruby-operator">||</span> <span class="ruby-number">0.0</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-subsidy_by">
            
              <b>subsidy_by</b>(name)
            
            <a href="../classes/SalaryLog.html#method-i-subsidy_by" name="method-i-subsidy_by" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-subsidy_by_source')" id="l_method-i-subsidy_by_source">show</a>
                
              </p>
              <div id="method-i-subsidy_by_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 8</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">subsidy_by</span>(<span class="ruby-identifier">name</span>)
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-identifier">name</span>]
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-yanglao">
            
              <b>yanglao</b>()
            
            <a href="../classes/SalaryLog.html#method-i-yanglao" name="method-i-yanglao" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-yanglao_source')" id="l_method-i-yanglao_source">show</a>
                
              </p>
              <div id="method-i-yanglao_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 58</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">yanglao</span>
  <span class="ruby-identifier">insurance</span>[<span class="ruby-string">&quot;yanglao&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-yiliao">
            
              <b>yiliao</b>()
            
            <a href="../classes/SalaryLog.html#method-i-yiliao" name="method-i-yiliao" class="permalink">Link</a>
          </div>

          
            <div class="description">
              
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-yiliao_source')" id="l_method-i-yiliao_source">show</a>
                
              </p>
              <div id="method-i-yiliao_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 54</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">yiliao</span>
  <span class="ruby-identifier">insurance</span>[<span class="ruby-string">&quot;yiliao&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-zhusu">
            
              <b>zhusu</b>()
            
            <a href="../classes/SalaryLog.html#method-i-zhusu" name="method-i-zhusu" class="permalink">Link</a>
          </div>

          
            <div class="description">
              <p>住宿</p>
            </div>
          

          

          

          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-zhusu_source')" id="l_method-i-zhusu_source">show</a>
                
              </p>
              <div id="method-i-zhusu_source" class="dyn-source">
                <pre><span class="ruby-comment"># File app/models/concerns/salary_log.rb, line 18</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">zhusu</span>
  <span class="ruby-identifier">subsidy</span>[<span class="ruby-string">&quot;zhusu&quot;</span>].<span class="ruby-identifier">to_f</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                    </div>

    </div>
  </body>
</html>
